﻿using Castle.ActiveRecord;

namespace NoMiddleman.Core.Domain
{
    [ActiveRecord]
    public class Photo
    {
        [PrimaryKey]
        public int Id { get; protected set; }
        
        [Property]
        public string Name { get; set; }

        [Property]
        public string Description { get; set; }

        [Property]
        public byte[] Bytes { get; set; }

        [BelongsTo(Type = typeof(Advert))]
        public Advert Advert { get; set; }
    }
}
